package com.video.service;

import com.video.bean.UserInfo;
import com.video.utils.ResultMap;

import javax.servlet.http.HttpServletRequest;

public interface UserServiceI {

    /**
     * 注册
     * @param userInfo
     * @return
     */
    public void register(UserInfo userInfo,HttpServletRequest req);
    /**
     * 登陆
     * @param username
     * @param password
     * @return
     */
    public ResultMap login(String username,String password, HttpServletRequest request);

    /**
     * 分页查询所有用户
     * @return
     */
    public ResultMap selectAllUser(int page, int limit);

    /**
     * 根据用户名修改用户信息
     * @param userInfo
     * @return
     */
    public ResultMap updateUserInfoByUsername(UserInfo userInfo, HttpServletRequest request);
}
